package com.crl.ui.controls.buttons
{
	import flash.display.DisplayObject;
	import flash.display.SimpleButton;
	
	public class SoundButton extends SimpleButton
	{
		protected var _soundEnabled:Boolean;
		
		/**
		 * Flag for sound enable
		 */
		
		
		/**
		 * The over sound to play. The SoundManager class
		 * is used internally here, so that sound should have been
		 * registered with the SoundManager previously.
		 */
		public var overSound:String;
		
		/**
		 * The out sound to play. The SoundManager class
		 * is used internally here, so that sound should have been
		 * registered with the SoundManager previously.
		 */
		public var outSound:String;
		
		/**
		 * The down sound to play. The SoundManager class
		 * is used internally here, so that sound should have been
		 * registered with the SoundManager previously.
		 */
		public var downSound:String;
		
		/**
		 * The up sound to play. The SoundManager class
		 * is used internally here, so that sound should have been
		 * registered with the SoundManager previously.
		 */
		public var upSound:String;
		
		/**
		 * The sound to play when this button is locked. The SoundManager class
		 * is used internally here, so that sound should have been
		 * registered with the SoundManager previously.
		 */
		public var lockSound:String;
		
		/**
		 * The sound to play when this movie clip is unlocked. The SoundManager class
		 * is used internally here, so that sound should have been
		 * registered with the SoundManager previously.
		 */
		public var unlockSound:String;
		
		
		public function SoundButton(upState:DisplayObject=null, overState:DisplayObject=null, downState:DisplayObject=null, hitTestState:DisplayObject=null)
		{
			super(upState, overState, downState, hitTestState);
		}
		
		/**
		 * Toggle sound enable.
		 */
		public function set soundEnabled(value:Boolean):void
		{
			_soundEnabled = value;
		}
	}
}